# RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc-ibm-aix-xcoff -x mir -verify-machineinstrs \
# RUN:     -xcoff-traceback-table=false -start-before=ppc-branch-select -filetype=obj -o %t.o < %s
# RUN: llvm-objdump -D -r --mcpu=pwr10 %t.o | FileCheck --check-prefix=DIS %s

---
name:            aix-prefixed-instruction-boundary
alignment:       16
tracksRegLiveness: true
liveins:
  - { reg: '$x3', virtual-reg: '' }
body:             |
  bb.0.entry:
    liveins: $x3
    renamable $x3 = LI8 2
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13

    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13

    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = PADDI8 $x3, 13
    renamable $x3 = LI8 2

    renamable $x3 = PADDI8 $x3, 13
    BLR8 implicit $lr8, implicit $rm, implicit killed $x3
...

# DIS:      Disassembly of section .text:
# DIS:      00000000 <.aix-prefixed-instruction-boundary>:
# DIS-NEXT:   0: 38 60 00 02  	          li 3, 2
# DIS-NEXT:   4: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:   c: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  14: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  1c: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  24: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  2c: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  34: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  3c: 60 00 00 00  	          nop
# DIS-NEXT:  40: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  48: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  50: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  58: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  60: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  68: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  70: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  78: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  80: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  88: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  90: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  98: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  a0: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  a8: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  b0: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  b8: 38 60 00 02  	          li 3, 2
# DIS-NEXT:  bc: 60 00 00 00  	          nop
# DIS-NEXT:  c0: 06 00 00 00 38 63 00 0d  paddi 3, 3, 13, 0
# DIS-NEXT:  c8: 4e 80 00 20  	          blr
